package com.xcx.minservice.service;


import com.xcx.commonuntils.returnuntls.ReturnMessage;

import com.xcx.minservice.entity.FileSystem;
import com.xcx.minservice.request.GetUserFilesRequest;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;


public interface MinioService {


    ReturnMessage<Object> upload(MultipartFile file,String userId,Integer source);

    ReturnMessage<Object> preview(String fileName);

    void download(String fileName, HttpServletResponse res);

    ReturnMessage<Object> remove(String fileName);

    ReturnMessage<List<String>> uploads(MultipartFile[] files);

    ReturnMessage<List<FileSystem>> getUserFiles(GetUserFilesRequest request);
}
